package abstractMethod;

public class Test {
    public static void main(String[] args) {
        IceCreamFactory iceCreamFactory = new AppleIceCreamFactory();
        BigIceCream bigAppleIceCream = iceCreamFactory.createBig();
        SmallIceCream smallIceCream = iceCreamFactory.createSmall();
        bigAppleIceCream.eat();
        smallIceCream.eat();

        IceCreamFactory cherryFactory = new CherryIceCreamFactory();
        BigIceCream bigIceCream = cherryFactory.createBig();
        SmallIceCream smallIceCream1 = cherryFactory.createSmall();
        bigIceCream.eat();
        smallIceCream1.eat();


    }
}
